package com.loong.common.enumerate;

public enum RPCResponseCode {

    SUCCESS(1, "SUCCESS"),
    FAIL_DEFAULT(-1, "未知错误"),
    DATA_NOT_SEARCH(-2, "未查询到相应条件的数据"),
    SERVER_ERROR(500, "服务器错误"),
    PARAM_ERROR(1001, "参数错误"),
    THIRD_PROVIDER_ERROR(2001, ""),

    SMS_FREQUENCY_VALIDATE_FAIL(3000, "短信发送频率太快"),
    SMS_API_NOT_CONFIG(3001, "短信发送API未配置"),
    ;

    private int code;
    private String message;

    RPCResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
